package com.cap.bts.crmdp.dealer.coupon.domain;

import java.io.Serializable;
import javax.persistence.*;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * The persistent class for the tm_raw_ticket_def database table.
 * 
 */
@Entity
@Table(name = "TM_RAW_TICKET_DEF")
@AttributeOverrides({
                     @AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY")),
                     @AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false)),
                     @AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY")),
                     @AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE")) })
public class Ticket extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long              id;

    private Integer           deductionAmount;

    private String            deductionMethod;

    private String            ifPrepay;

    private String            ticketName;

    private String            ticketType;

    private String            verificationMethod;

    private String            smsRemind;
    
    private Integer maximunTimes;

	@Column(name="MAXIMUM_TIMES")
	public Integer getMaximunTimes() {
		return maximunTimes;
	}

	public void setMaximunTimes(Integer maximunTimes) {
		this.maximunTimes = maximunTimes;
	}
	

    public Ticket() {
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "DEDUCTION_AMOUNT")
    public Integer getDeductionAmount() {
        return deductionAmount;
    }

    public void setDeductionAmount(Integer deductionAmount) {
        this.deductionAmount = deductionAmount;
    }

    @Column(name = "DEDUCTION_METHOD")
    public String getDeductionMethod() {
        return this.deductionMethod;
    }

    public void setDeductionMethod(String deductionMethod) {
        this.deductionMethod = deductionMethod;
    }

    /** 
     * Getter method for property <tt>ifPrepay</tt>. 
     * @return property value of ifPrepay 
     */
    @Column(name = "IF_PREPAY")
    public String getIfPrepay() {
        return ifPrepay;
    }

    /** 
     * Setter method for property <tt>ifPrepay</tt>. 
     * @param ifPrepay value to be assigned to property ifPrepay 
     */

    public void setIfPrepay(String ifPrepay) {
        this.ifPrepay = ifPrepay;
    }

    @Column(name = "TICKET_NAME")
    public String getTicketName() {
        return this.ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    @Column(name = "TICKET_TYPE")
    public String getTicketType() {
        return this.ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    @Column(name = "VERIFICATION_METHOD")
    public String getVerificationMethod() {
        return this.verificationMethod;
    }

    public void setVerificationMethod(String verificationMethod) {
        this.verificationMethod = verificationMethod;
    }

    /** 
     * Getter method for property <tt>smsRemind</tt>. 
     * @return property value of smsRemind 
     */
    @Column(name="SMS_REMIND")
    public String getSmsRemind() {
        return smsRemind;
    }

    /** 
     * Setter method for property <tt>smsRemind</tt>. 
     * @param smsRemind value to be assigned to property smsRemind 
     */
    
    public void setSmsRemind(String smsRemind) {
        this.smsRemind = smsRemind;
    }

}